﻿class @BooksRoutes extends Backbone.Router
    routes:
        "Books/:bookId": "Index"

    Index: (bookId) ->
        layout = new LibraryLayoutView()
        model = new BooksModel()
        model.set("BookId",  bookId)
        view = new BooksView(model: model)